package phoenix.web.test_objects.data_providers.adsbridge;

import phoenix.core.PhoenixManager;
import phoenix.core.base.extensions.TestBaseExt;
import phoenix.core.data_models.UserProfileDataModel;
import phoenix.core.data_models.UserProfileDataModel.PaymentDetails;

public class AdsBridgeDataProviders extends TestBaseExt
{
	public AdsBridgeDataProviders(PhoenixManager p_phoenix)
	{
		super(p_phoenix);
	}

	public static final String LOVEAHOLICS = "www.loveaholics.com";
	public static final String CLICKANDFLIRT = "www.clickandflirt.com";
	public static final String BENAUGHTY = "www.benaughty.com";
	public static final String NAUGHTYDATE = "www.naughtydate.com";
	public static final String FLIRT = "www.flirt.com";

	String p_jump = "http://sex-flow.com/99/campaign2331?utm_source=dda&utm_medium=web&utm_campaign={utm_campaign}&utm_term={utm_term}&utm_content={utm_content}&tr={tr}";

	UserProfileDataModel profileModel = new UserProfileDataModel(manager);
	PaymentDetails paymentDataSuccessful = profileModel.new PaymentDetails();

	public Object[][] sitesData()
	{
		return new Object[][]
		{
				{ FLIRT },
				{ CLICKANDFLIRT },
				{ LOVEAHOLICS },
				{ NAUGHTYDATE },
				{ BENAUGHTY },
		};
	}

	public Object[][] ruleOne()
	{
		return new Object[][]
		{
				{ p_jump, CLICKANDFLIRT, "cnf_passion_wlp_a" },
		};
	}

	public Object[][] ruleTwo()
	{
		paymentDataSuccessful.fillUpCorrectCard();

		return new Object[][]
		{
				{ p_jump, CLICKANDFLIRT, "cnf_1cw_ab_a", paymentDataSuccessful },
		};
	}

	public Object[][] ruleThree()
	{
		paymentDataSuccessful.fillUpCorrectCard();

		return new Object[][]
		{
				{ p_jump, LOVEAHOLICS, "lvh_1cw_ab_a", paymentDataSuccessful },
		};
	}

	public Object[][] ruleFour()
	{
		paymentDataSuccessful.fillUpCorrectCard();

		return new Object[][]
		{
				{ p_jump, NAUGHTYDATE, "nd_1cw_ab_a", paymentDataSuccessful },
		};
	}

	public Object[][] ruleFive()
	{
		paymentDataSuccessful.fillUpCorrectCard();

		return new Object[][]
		{
				{ p_jump, BENAUGHTY, "bn_1cw_ab_a", paymentDataSuccessful },
		};
	}

	public Object[][] ruleSix()
	{
		return new Object[][]
		{
				{ p_jump, CLICKANDFLIRT, "cnf_passion_wlp_a" },
		};
	}
}
